package com.gang.mars.basic.function;

import java.util.function.Function;

/**
 * @author gang.chen
 * @description
 * @Date 2021/7/19 12:08
 */
public class Peach10 {
    public static void main(String[] args) {
        String str = "1024";

        Integer integer = test01(str, (String str10) -> {
            return Integer.parseInt(str);
        });
        System.out.println(integer);
    }

    public static Integer test01(String str, Function<String, Integer> function){
        return function.apply(str);
    }
}
